/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：SysRolePermission仓储                                              
*│　作    者：sys                                            
*│　创建时间：2020-11-24 16:02:44  
*│　说    明：代码生成器生成   
*└──────────────────────────────────────────────────────────────┘
*/
using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public class SysRolePermissionRepository:RepositoryAbstract<SysRolePermissionEntity>,ISysRolePermissionRepository
    {
        public SysRolePermissionRepository(IDbContext dbContext):base(dbContext)
        {
          
        }

        public async Task<List<string>> GetPermissionByRoleId(string roleId)
        {
            var sql = "";
            return await FromSql.GetDataListAsync<string>("select permissionid from [SysRolePermission] where roleid=@roleId", new { roleId });
        }
    }
}